﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HomeCareLibrary.Core.Dtos;

namespace HomeCareLibrary.Core.JsonObjects
{
    public class Tip
    {
        public string tipCode { get; set; }
        public string displayIconCode { get; set; }
        public string tipTitle { get; set; }
        public string tipContent { get; set; }
        public int tipPriority { get; set; }
        public int tipType { get; set; }
        public string tipBenefitContent { get; set; }
        public int tipEnergySavingsScore { get; set; }
        public string tipEnergySavingsContent { get; set; }
        public int tipCostScore { get; set; }
        public string tipCostContent { get; set; }
        public string tipMoreInfoLink { get; set; }
        public int tipKnowledgeLevel { get; set; }
        public string tipScore { get; set; }
        public string TGMS { get; set; }
        public string benefitsStr { get; set; }
        public string tipExcludedFeatures { get; set; }

        public Tip(CTTipDto dto)
        {
            tipCode = dto.tip_code;
            displayIconCode = dto.display_icon_code;
            tipTitle = dto.tip_title;
            tipContent = dto.tip_content;
            tipPriority = dto.tip_priority;
            tipType = dto.tip_type;
            tipBenefitContent = dto.tip_benefit_content;
            tipEnergySavingsScore = dto.tip_energy_savings_score;
            tipEnergySavingsContent = dto.tip_energy_savings_content;
            tipCostScore = dto.tip_cost_score;
            tipCostContent = dto.tip_cost_content;
            tipMoreInfoLink = dto.tip_more_info_link;
            tipKnowledgeLevel = dto.tip_knowledge_level;
            tipScore = dto.tip_score;
            TGMS = dto.TGMS;
            benefitsStr = dto.benefits_str;
            tipExcludedFeatures = dto.tip_excluded_features;
        }
    }
}
